package com.john.blog.common.vo;

import java.io.Serializable;

/**
 * 断点
 * 
 * @author JiangGengchao
 * @date 2018年2月4日
 */
public class UrlPoint implements Serializable {

    private static final long serialVersionUID = -5238208402549390968L;

    public UrlPoint() {

    }

    public UrlPoint(String name) {
        this.setName(name);
    }

    private String name;

    private String address;

    private int port;

    private String context;

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address
     *            the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the port
     */
    public int getPort() {
        return port;
    }

    /**
     * @param port
     *            the port to set
     */
    public void setPort(int port) {
        this.port = port;
    }

    /**
     * @return the context
     */
    public String getContext() {
        return context;
    }

    /**
     * @param context
     *            the context to set
     */
    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append(name).append(":http://").append(address).append(":").append(port).append("/").append(context);
        return stringBuffer.toString();
    }

}
